# -*- coding: utf-8 -*-
# 创建时间：2021/7/16 17:16
from bs4 import BeautifulSoup
import requests
import time, math, random, json
import pymysql
import re
import PySimpleGUI as sg

__author__ = 'LuckyHhy'


#查看所有主题
# sg.preview_all_look_and_feel_themes()
# 切换主题
# sg.change_look_and_feel("GreenMono")


def main():
    sg.change_look_and_feel("GreenMono")
    text = sg.Text("输入你的早起的看法")
    textinput = sg.InputText()
    bt = sg.Button('确认')
    cbt = sg.Button('取消')
    layout = [[text, textinput], [bt, cbt]]
    window = sg.Window('欢迎来到早起Python', layout)
    while True:
        event, values = window.read()
        if event in (None, '取消'):
            break  # 相当于关闭界面
        print(f'Event: {event}')
        print(str(values))

    window.close()
    pass


if __name__ == '__main__':
    main()
